<template>
  <div>
    <el-button v-bind="$attrs" @click="clickFn">
      <slot>www</slot>
    </el-button>
  </div>
</template>
<script setup>
import { debounce } from 'lodash';
const emit = defineEmits(['click']);
const clickFn = debounce(
  () => {
    emit('click');
  },
  1000,
  {
    leading: false,
    trailing: true
  }
);
</script>
